package com.mall.shop.dto.auth;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Getter
@Setter
public class LoginDto {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]{9}$",message = "手机格式不正确")
    private String mobile;
    @NotBlank(message = "验证码不能为空")
    private String code;

}
